package com.dormitory.manage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 * @version 1.0
 * @description User
 * @date 2023/4/5 0005 13:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;
    @TableField(value = "username")
    private String username;
    @TableField(value = "password")
    private String password;

    @TableField(value = "token")
    private String token;

    @TableField(value = "avatar")
    private String avatar;
    @TableField(value = "roles")
    private String roles;

    @TableField(value = "qq")
    private String qq;

    @TableField(value = "email")
    private String email;

    @TableField(value = "address")
    private String address;

    @TableField(value = "gender")
    private String gender;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "introduction")
    private String introduction;

    @TableField(value = "occupation")
    private String occupation;

    @TableField("accesses")
    private Integer accesses;

    @TableField("is_online")
    private Integer isOnline;
}
